package com.jyx.refactor.beginner.service;

public abstract class Price {
	
	/**
	 * 获取价格码
	 * @return
	 */
	public abstract int getPriceCode();
	
	/**
	 * 计算订单金额
	 * @param daysRented
	 * @return
	 */
	public abstract double calcAmount(int daysRented);

	/**
	 *  计算积分
	 * @return
	 */
	public int calcIntegral(int daysRented){
		return 1;
	}
}
